/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ronsicecream.pos.master.rasa;

import com.buanalintas.bynga.Field;
import com.buanalintas.bynga.Page;
import com.ronsicecream.pos.entities.PosMasterRasa;

/**
 *
 * @author user
 */
public class Rasa extends Page{
    private Field rasaId;
    private Field rasaName;

    public Rasa() {
        super();

        setTheClass(PosMasterRasa.class);




        rasaId = new Field();
        rasaId.setName("rasaId");
        rasaId.setCaption("id");
        //regionalId.setInfo("regional id");
        rasaId.setListProperties(" align=\"left\" width=\"1%\" nowrap");
        rasaId.setInputProperties(" size=\"20\"");
        getFields().add(rasaId);
        
        rasaName = new Field();
        rasaName.setName("rasaName");
        rasaName.setCaption("name");
        //regionalName.setInfo("regional name");
        rasaName.setListProperties(" align=\"left\" width=\"60%\" nowrap");
        rasaName.setInputProperties(" size=\"30\"");
        rasaName.setRequired(true);
        getFields().add(rasaName);



        fillFields();
        setExportList(getClass().getResourceAsStream("RegionalList.jasper"));
        setExport(getClass().getResourceAsStream("Regional.jasper"));

        getFieldsAdd().remove(rasaId);
        getFieldsEdit().remove(rasaId);
        getFieldsList().remove(rasaId);
        getFieldsView().remove(rasaId);
    }
}
